package com.apex.security.api.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping
public interface WorkflowServiceApi {

    @RequestMapping(value = "/rest/api/workflow/list/db",method = RequestMethod.GET)
    String getAllDb(@RequestParam("userID") String userId);

    @RequestMapping(value = "/rest/api/workflow/list/yb",method = RequestMethod.GET)
    String getAllYb(@RequestParam("userID") String userId);

    @RequestMapping(value = "/rest/api/workflow/list/db/pager",method = RequestMethod.POST)
    String getAllPageDB(@RequestBody String code);

    @RequestMapping(value = "/rest/api/workflow/list/yb/pager",method = RequestMethod.POST)
    String getAllPageYB(@RequestBody String code);

    @RequestMapping(value = "/rest/api/workflow/query/user/summary",method = RequestMethod.GET)
    String getUserDbSummary(@RequestParam("userID") String userId);
}
